<!DOCTYPE html>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml"
      xmlns:v-for="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            box-sizing: border-box;
        }
        #container {
            position: absolute;
            left: 50%;
            top: 10%;
            transform: translateX(-50%);
            width: 300px;
            height: 400px;
            border: 1px solid;
        }
        input {
            border-width: 1px;
        }
        #child {
            position: absolute;
            left: 50%;
            top: 30%;
            transform: translate(-50%, -50%);
        }
        label {
            display: block;
        }
    </style>

</head>
<body>
<%
if(session.getAttribute("username")==null){
    response.sendRedirect("loginAndRegister.jsp");
}
%>
<div id="container">
    <div id="child">
        <h3>用户信息调查问卷</h3>
        <form action="showSurvey.jsp" method="post">
            <label>爱好：<input type="text" name="like"  value=""></label><br>
            <label>身高：<input type="text" name="height" value=""></label><br>
            <label>性别：<input type="text" name="sex" value=""></label><br>
            <label>年龄：<input type="text" name="age" value=""></label><br>
            <input type="submit" value="提交">&nbsp;&nbsp;
            <input type="reset" value="重置">&nbsp;&nbsp;
        </form>
    </div>
</div>
</body>
</html>

